<include file="./head" />
<script type="application/javascript">
 var reg_url="{:U('buchong_tel')}?ajax=true";
</script>
<style>
.btn-retransmit {
  float: right;
  overflow: hidden;
  width: 44.13793103448276%;
  height: 42px;
  border: 1px solid #f15353;
  border-radius: 3px;
  background: #fff;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #f15353
}
.btn-retransmit-disabled {
  box-shadow: none;
  border: 1px solid #e2e2e2;
  background: #e2e2e2;
  cursor: default;
  color: #bdbdbd
}
</style>
<div class="page-login">
  <div class="header">
    <div class="thumb-hidden" style="width:0px;height:0px; overflow:hidden;"><img src="__PUBLIC__/user/Content/images/logo.jpg" /></div>
    <div class="left"> <a class="logo" href="{:U("index/index")}"><img src="__PUBLIC__/user/Content/images/logo2.png"></a> <span>分享创造价值</span> </div>
  </div>
  <div class="page-viewport">
    <div class="main">
      <div class="ad_text" style=" font-size:20px;">为了更好的提供服务，亲您需要补全手机号码和密码来激活帐号</div>
      <form action="{:U("login/reg_s")}" method="post" id="commentForm">
 
        <div class="item item-tips">
          <div class="err-msg"><span class="field-validation-valid" data-valmsg-for="LoginName" data-valmsg-replace="true"></span></div>
        </div>
        <div class="item item-username">
          <input class="txt-input <?php if(C('MSG_STATE')){?> txt-phone <?php }else{ ?>txt-username<?php }?>" id="user_tel" name="user_tel" placeholder="请输入手机号码" type="text" value="" />
          <?php if(C('MSG_STATE')){?>
          <a href="javascript:void();" id="endsms" class="btn-retransmit btn-retransmit-disabled">获取短信验证码</a>
          <?php } ?>
        </div>
        <?php if(!C('MSG_STATE')){?>
        <div class="item item-username">
          <input class="txt-input txt-username" id="user_tel2" name="user_tel" placeholder="重复手机号码" type="text" value="" />
        </div>
        <?php }else{?>
        <div class="item item-username">
          <input class="txt-input txt-username" id="code" name="code" placeholder="验请输入短信验证码" type="text" value="" />
        </div>
        <?php }?>
        <div class="item item-tips">
          <div class="err-msg"><span class="field-validation-valid" data-valmsg-for="Password" data-valmsg-replace="true"></span></div>
        </div>
        <div class="item item-password">
          <input autocomplete="off" class="txt-input txt-password"  id="password" name="password" placeholder="请输入密码" type="password" />
        </div>
        <div class="item item-btns">
          <button class="btn-login" id="buchong_sub" type="button" >立即补全信息</button>
        </div>
      </form>
      
    </div>
  </div>
</div>
<script type="text/javascript">
 $(function(){
	  $("#buchong_sub").click(function(){
	     var n = $("#user_tel").val(),
            n2=$("#user_tel2").val(),
			n3=$("#code").val(),
		t = $("#password").val(),
		i = {
		user_tel: n,
        user_tel2:n2,
		code:n3,
		password: t
		};
		$.ajax({ 
			url: reg_url,
			type: "POST",
			data: i,
			dataType: "json",
			success: function(data){
				var data1= eval(data);
				if(data1.status){ 
				  yz_alert_url(data1.info,data1.url);
				}else{ 
				  yz_alert(data1.info);
				}

			},
		});
       });
	 });
</script>
<script src="__PUBLIC__/user/sms.js?v=1"></script>
</body></html>